public class DoMhileDemo {
    public static void main(String[] args) {
        int i= 100,s = 0;
        do {
            s += i;
            i--;
        }while(i > 0);
        System.out.println( "1～100的和=" + s) ;
    }
}
